Integrand size = 38, antiderivative size = 45 \[ \int \frac {\cos ^2(e+f x) \sqrt {a+a \sin (e+f x)}}{\sqrt {c-c \sin (e+f x)}} \, dx=\frac {\cos (e+f x) (a+a \sin (e+f x))^{3/2}}{2 a f \sqrt {c-c \sin (e+f x)}} \]
[Out]
Time = 0.21 (sec) , antiderivative size = 45, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.053, Rules used = {2920, 2817} \[ \int \frac {\cos ^2(e+f x) \sqrt {a+a \sin (e+f x)}}{\sqrt {c-c \sin (e+f x)}} \, dx=\frac {\cos (e+f x) (a \sin (e+f x)+a)^{3/2}}{2 a f \sqrt {c-c \sin (e+f x)}} \]
[In]
[Out]
Rule 2817
Rule 2920
Rubi steps \begin{align*} \text {integral}& = \frac {\int (a+a \sin (e+f x))^{3/2} \sqrt {c-c \sin (e+f x)} \, dx}{a c} \\ & = \frac {\cos (e+f x) (a+a \sin (e+f x))^{3/2}}{2 a f \sqrt {c-c \sin (e+f x)}} \\ \end{align*}
Time = 1.49 (sec) , antiderivative size = 62, normalized size of antiderivative = 1.38 \[ \int \frac {\cos ^2(e+f x) \sqrt {a+a \sin (e+f x)}}{\sqrt {c-c \sin (e+f x)}} \, dx=-\frac {\sec (e+f x) (\cos (2 (e+f x))-4 \sin (e+f x)) \sqrt {a (1+\sin (e+f x))} \sqrt {c-c \sin (e+f x)}}{4 c f} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. \(93\) vs. \(2(39)=78\).
Time = 0.16 (sec) , antiderivative size = 94, normalized size of antiderivative = 2.09
method | result | size |
default | \(\frac {\left (\cos \left (f x +e \right ) \sin \left (f x +e \right )-\left (\cos ^{2}\left (f x +e \right )\right )+\sin \left (f x +e \right )+2 \cos \left (f x +e \right )-1\right ) \sqrt {a \left (1+\sin \left (f x +e \right )\right )}\, \left (1+\cos \left (f x +e \right )\right )}{2 f \left (\cos \left (f x +e \right )+\sin \left (f x +e \right )+1\right ) \sqrt {-c \left (\sin \left (f x +e \right )-1\right )}}\) | \(94\) |
[In]
[Out]
none
Time = 0.32 (sec) , antiderivative size = 59, normalized size of antiderivative = 1.31 \[ \int \frac {\cos ^2(e+f x) \sqrt {a+a \sin (e+f x)}}{\sqrt {c-c \sin (e+f x)}} \, dx=-\frac {{\left (\cos \left (f x + e\right )^{2} - 2 \, \sin \left (f x + e\right ) - 1\right )} \sqrt {a \sin \left (f x + e\right ) + a} \sqrt {-c \sin \left (f x + e\right ) + c}}{2 \, c f \cos \left (f x + e\right )} \]
[In]
[Out]
\[ \int \frac {\cos ^2(e+f x) \sqrt {a+a \sin (e+f x)}}{\sqrt {c-c \sin (e+f x)}} \, dx=\int \frac {\sqrt {a \left (\sin {\left (e + f x \right )} + 1\right )} \cos ^{2}{\left (e + f x \right )}}{\sqrt {- c \left (\sin {\left (e + f x \right )} - 1\right )}}\, dx \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 387 vs. \(2 (39) = 78\).
Time = 0.35 (sec) , antiderivative size = 387, normalized size of antiderivative = 8.60 \[ \int \frac {\cos ^2(e+f x) \sqrt {a+a \sin (e+f x)}}{\sqrt {c-c \sin (e+f x)}} \, dx=-\frac {\frac {2 \, \sqrt {a} \sqrt {c} + \frac {\sqrt {a} \sqrt {c} \sin \left (f x + e\right )}{\cos \left (f x + e\right ) + 1} + \frac {3 \, \sqrt {a} \sqrt {c} \sin \left (f x + e\right )^{2}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{2}} + \frac {\sqrt {a} \sqrt {c} \sin \left (f x + e\right )^{3}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{3}}}{c + \frac {2 \, c \sin \left (f x + e\right )^{2}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{2}} + \frac {c \sin \left (f x + e\right )^{4}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{4}}} - \frac {2 \, \sqrt {a} \sqrt {c} - \frac {\sqrt {a} \sqrt {c} \sin \left (f x + e\right )}{\cos \left (f x + e\right ) + 1} + \frac {\sqrt {a} \sqrt {c} \sin \left (f x + e\right )^{2}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{2}} - \frac {\sqrt {a} \sqrt {c} \sin \left (f x + e\right )^{3}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{3}}}{c + \frac {2 \, c \sin \left (f x + e\right )^{2}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{2}} + \frac {c \sin \left (f x + e\right )^{4}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{4}}} + \frac {2 \, {\left (\frac {\sqrt {a} \sqrt {c} \sin \left (f x + e\right )}{\cos \left (f x + e\right ) + 1} + \frac {\sqrt {a} \sqrt {c} \sin \left (f x + e\right )^{2}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{2}} + \frac {\sqrt {a} \sqrt {c} \sin \left (f x + e\right )^{3}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{3}}\right )}}{c + \frac {2 \, c \sin \left (f x + e\right )^{2}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{2}} + \frac {c \sin \left (f x + e\right )^{4}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{4}}}}{2 \, f} \]
[In]
[Out]
none
Time = 0.32 (sec) , antiderivative size = 53, normalized size of antiderivative = 1.18 \[ \int \frac {\cos ^2(e+f x) \sqrt {a+a \sin (e+f x)}}{\sqrt {c-c \sin (e+f x)}} \, dx=-\frac {2 \, \sqrt {a} \cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{4} \mathrm {sgn}\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right )}{\sqrt {c} f \mathrm {sgn}\left (\sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right )} \]
[In]
[Out]
Time = 9.11 (sec) , antiderivative size = 73, normalized size of antiderivative = 1.62 \[ \int \frac {\cos ^2(e+f x) \sqrt {a+a \sin (e+f x)}}{\sqrt {c-c \sin (e+f x)}} \, dx=-\frac {\sqrt {a\,\left (\sin \left (e+f\,x\right )+1\right )}\,\sqrt {-c\,\left (\sin \left (e+f\,x\right )-1\right )}\,\left (\cos \left (e+f\,x\right )+\cos \left (3\,e+3\,f\,x\right )-4\,\sin \left (2\,e+2\,f\,x\right )\right )}{4\,c\,f\,\left (\cos \left (2\,e+2\,f\,x\right )+1\right )} \]
[In]
[Out]